package com.gujiangbo;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;

/*
@MapperScan(basePackages = {"com.gujiangbo.mapper"})
*/
@SpringBootApplication
public class SykApplication extends SpringBootServletInitializer implements CommandLineRunner {

    private static final Log debugLog = LogFactory.getLog(SykApplication.class);

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
        return builder.sources(SykApplication.class);
    }

    public static void main(String[] args) {
        SpringApplication.run(SykApplication.class, args);
    }

    @Override
    public void run(String... args) {
        debugLog.info("========== data Application started info  ! ===============");
        debugLog.debug("========= data Application started debug ! ===============");
        debugLog.error("========= data Application started error ! ===============");
    }
}
